package com.lkei.service.impl;

import com.lkei.dao.CommentDAO;
import com.lkei.entity.Comment;
import com.lkei.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("commentService")
public class CommentServiceImpl implements CommentService {
    @Autowired
    private CommentDAO commentDAO;

    @Override
    public List<Comment> findAllComment() {
        return commentDAO.findAllComment();
    }

    @Override
    public void addComment(Comment comment) {
        commentDAO.addComment(comment);
    }

    @Override
    public List<Comment> findCommentByTno(String tno) {
        return commentDAO.findCommentByTno(tno);
    }


}